package com.zsrt.day20170405.ch01;

import java.util.Scanner;

public class TestDemo01 {
	public static void main(String[] args) {
		char sex;
		int age;
		String xueli;
		System.out.println("请输入性别：");
		Scanner sc=new Scanner(System.in);
		sex=sc.next().charAt(0);
		if(sex=='女'){
			System.out.println("请输入年龄：");
			age=sc.nextInt();
			if(age>18){
				System.out.println("请输入学历：");
				xueli=sc.next();
				if(xueli.equals("大专")){
					System.out.println("符合条件");
				}else{
					System.out.println("不符合条件");
				}
			}else{
				System.out.println("不符合条件");
			}
		}else{
			System.out.println("不符合条件");
		}
		sc.close();
		
		
	}

}
